import Vue from 'vue'
const comments = require.context('../components/common', true, /\.vue$/)
comments.keys().forEach((fileName) => {
  const componentName = fileName.match(/\.\/(.*)\.vue$/)[1] // 修改正则表达式
  Vue.component(componentName, comments(fileName).default)
})
